package cn.sxgan.gen.utils;

import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.StringUtils;

/**
 * @Description: 字符串处理类
 * @Author: sxgan
 * @Date: 2025-07-14 16:12
 * @Version: 1.0
 **/

public class StrUtils {
    
    public static boolean equalsAny(CharSequence str, CharSequence... searchStrs) {
        if (ArrayUtils.isEmpty(searchStrs)) {
            return false;
        }
        for (CharSequence searchStr : searchStrs) {
            if (StringUtils.equals(str, searchStr)) {
                return true;
            }
        }
        return false;
    }
}
